package com.zw.design.pattern.creational.structural.flyweight;

public class Test {
    private static  final  String departments[]={"RD","QA","PM","BA","DB"};
    public static void main(String[] args) {

        for (int i = 0; i < 10; i++) {
            String depart=departments[(int) (Math.random()*departments.length)];
            Manager manager = (Manager) EmpployeeFactory.getManager(depart);
            manager.report();
        }

    }
}
